package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 加班申请对象 per_overtime_application
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerOvertimeApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 加班申请ID */
    private Long overtimeId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String department;

    /** 加班类型 */
    @Excel(name = "加班类型")
    private String overtimeType;

    /** 加班开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加班开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overtimeStart;

    /** 加班结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加班结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overtimeEnd;

    /** 加班小时数 */
    @Excel(name = "加班小时数")
    private Long overtimeHours;

    /** 加班原因 */
    @Excel(name = "加班原因")
    private String reason;

    /** 加班申请状态 */
    @Excel(name = "加班申请状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setOvertimeId(Long overtimeId) 
    {
        this.overtimeId = overtimeId;
    }

    public Long getOvertimeId() 
    {
        return overtimeId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setOvertimeType(String overtimeType) 
    {
        this.overtimeType = overtimeType;
    }

    public String getOvertimeType() 
    {
        return overtimeType;
    }
    public void setOvertimeStart(Date overtimeStart) 
    {
        this.overtimeStart = overtimeStart;
    }

    public Date getOvertimeStart() 
    {
        return overtimeStart;
    }
    public void setOvertimeEnd(Date overtimeEnd) 
    {
        this.overtimeEnd = overtimeEnd;
    }

    public Date getOvertimeEnd() 
    {
        return overtimeEnd;
    }
    public void setOvertimeHours(Long overtimeHours) 
    {
        this.overtimeHours = overtimeHours;
    }

    public Long getOvertimeHours() 
    {
        return overtimeHours;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("overtimeId", getOvertimeId())
            .append("userName", getUserName())
            .append("department", getDepartment())
            .append("overtimeType", getOvertimeType())
            .append("overtimeStart", getOvertimeStart())
            .append("overtimeEnd", getOvertimeEnd())
            .append("overtimeHours", getOvertimeHours())
            .append("reason", getReason())
            .append("status", getStatus())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
